Restore the 83_allow_gles_platforms.patch hack for Qt with OpenGL ES
authorAdrian Bunk <bunk@debian.org>
Thu, 25 Nov 2021 08:04:27 +0000 (10:04 +0200)
committerAdrian Bunk <bunk@debian.org>
Tue, 18 Jan 2022 22:57:37 +0000 (00:57 +0200)
debian/patches/83_allow_gles_platforms.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/83_allow_gles_platforms.patch b/debian/patches/83_allow_gles_platforms.patch
new file mode 100644 (file)
index 0000000..e08f7a4
--- /dev/null
@@ -0,0 +1,29 @@
+Subject: HACK: QVTKOpenGLWindow.cxx: Define GL_BACK_{LEFT,RIGHT} for Qt with OpenGL ES
+From: Adrian Bunk <bunk@debian.org>
+
+Date: Fri, 11 Dec 2020 10:42:37 +0200
+
+
+---
+ GUISupport/Qt/QVTKOpenGLWindow.cxx | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/GUISupport/Qt/QVTKOpenGLWindow.cxx b/GUISupport/Qt/QVTKOpenGLWindow.cxx
+index 3bddc19809..79d5c2b653 100644
+--- a/GUISupport/Qt/QVTKOpenGLWindow.cxx
++++ b/GUISupport/Qt/QVTKOpenGLWindow.cxx
+@@ -35,6 +35,11 @@
+ #include "vtkObjectFactory.h"
+ #include "vtkOpenGLState.h"
++#ifndef GL_BACK_LEFT
++#define GL_BACK_LEFT GL_BACK
++#define GL_BACK_RIGHT GL_BACK
++#endif
++
+ QVTKOpenGLWindow::QVTKOpenGLWindow(QOpenGLWindow::UpdateBehavior ub, QWindow* p)
+   : QVTKOpenGLWindow(vtkSmartPointer<vtkGenericOpenGLRenderWindow>::New(), nullptr, ub, p)
+ {
+-- 
+2.20.1
+
index 2a13b5d44b683a9b41ccc401c344534106792385..6c21f514ac936abc518a29e989d593d8ba3e7a64 100644 (file)
@@ -4,6 +4,7 @@
 40_vtkpython-9.patch
 50_fix_python-modules_path.patch
 60_fix_path_perl.patch
+83_allow_gles_platforms.patch
 95_java_mach-arch_fix.patch
 97_reproducible_builds.patch
 98_fix_mpi4py.py